package com.system.employee.repository;

import com.system.employee.bean.Employee;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author 林
 */
public interface EmployeeRepository extends JpaRepository<Employee, Integer> {
    List<Employee> findAllByDepartmentId(int departmentId);
    List<Employee> findAllByeType(int type);
}
